package org.httpclient.service;

/**
 * 响应结果
 * 
 * @author chenfanglin
 * @date: 2018年8月15日 下午5:17:14
 */
public class HttpResult {

	/**
	 * 状态码
	 */
	private Integer status;

	/**
	 * 返回数据
	 */
	private String data;

	public HttpResult() {
	}

	public HttpResult(Integer status, String data) {
		this.status = status;
		this.data = data;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public String getData() {
		return data;
	}

	public void setData(String data) {
		this.data = data;
	}

	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("HttpResult [status=").append(status).append(", data=").append(data).append("]");
		return builder.toString();
	}

}
